package com.cainaer.orders.api;

import com.cainaer.orders.api.domain.OrderItem;
import com.cainaer.orders.api.factory.RemoteOrdersFallbackFactory;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import com.cainaer.common.core.constant.ServiceNameConstants;

import java.util.List;


/**
 *
 * 订单服务
 * @author cainaer
 */
@FeignClient(contextId = "remoteOrdersService", value = ServiceNameConstants.SYSTEM_ORDERS, fallbackFactory = RemoteOrdersFallbackFactory.class)
public interface RemoteOrdersService
{

    @GetMapping("/orderAmount")
    Integer selectOrderAmountByShopId(@RequestParam("shopId") Long shopId);

    @GetMapping("/orderItem/selectOrderItemProductIdListsByShopId")
    List<Long> selectOrderItemProductIdListsByShopId(@RequestParam("shopId") Long shopId);

}
